home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / CDEF-DeBugger 2.0 ƒ / MyProject.h < prev    next >
Text File  |  1995-05-31  |  2KB  |  90 lines

  1. // MyProject.h
  2.  
  3. // include files
  4. #include <Controls.h>
  5. #include <Windows.h>
  6. #include <Dialogs.h>
  7.  
  8. // macros and defines
  9. #define        TRUE            1
  10. #define        FALSE            0
  11.  
  12. #define        MAIN_WINDOW        100
  13. #define        ERROR_WINDOW    200
  14.  
  15. // stuff for MenuBar.c
  16. #define        MENU_APPLE        128
  17. #define        MENU_FILE        129
  18. #define        MENU_EDIT        130
  19. #define        APPLE_ABOUT        1
  20. #define        FILE_QUIT        1
  21. #define        EDIT_UNDO        1
  22. #define        EDIT_CUT        3
  23. #define        EDIT_COPY        4
  24. #define        EDIT_PASTE        5
  25. #define        EDIT_CLEAR        6
  26. #define        EDIT_SELECTALL    8
  27.  
  28. // stuff for MyColors.c
  29. #define        WHITE_COLOR        0xFFFF
  30. #define        BLACK_COLOR        0x0000
  31. #define        GREY_A            0xED12
  32. #define        GREY_B            0xC23D
  33. #define        GREY_C            0xBA45
  34. #define        GREY_D            0xA956
  35. #define        GREY_E            0x8778
  36. #define        GREY_F            0x7689
  37. #define        GREY_G            0x54AB
  38. #define        GREY_H            0x43BC
  39. #define        GREY_I            0x21DE
  40. #define        GREY_J            0x10EF
  41. #define        extrudeIn        0
  42. #define        extrudeOut        1
  43.  
  44. // structs
  45. // this struct is used to hold info about my window.
  46. typedef struct {
  47.     // the window pointer
  48.     WindowPtr        window;
  49.     WindowPtr        error;
  50.     
  51.     // Control handles
  52.     ControlHandle    hControl;
  53.     ControlHandle    hAppleControl;
  54.     
  55.     // icon info
  56.     CIconHandle        icon;
  57.     
  58.     // data
  59.     Str255            errMsg;
  60. } Main, *MainPtr, **MainHan;
  61.  
  62. // this struct is used to force parm into this format for FillCntlParameters().
  63. typedef struct {
  64.     Rect    limitRect;
  65.     Rect    slopRect;
  66.     short    axis;
  67. } CntlParm, *CntlParmPtr;    
  68.  
  69. // This is our information we store in the contrlData field.
  70. typedef struct {
  71.     // all of the parts
  72.     Rect        cntlRect;
  73.     Rect        thumbRect;
  74.     Rect        arrowLT;        // Left or Top arrow depending if we are horz or vert
  75.     Rect        arrowRB;        // Right or Bottom arrow depending if we are horz or vert
  76.     Rect        trackRect;
  77. } MyCntlData, *MyCntlDataPtr, **MyCntlDataHan;    
  78.  
  79. // these are parameters used to set up you control. Used by SetUpMyControl()
  80. typedef struct {
  81.     WindowPtr        theWindow;
  82.     Rect            cntlRect;
  83.     Str255            title;
  84.     Boolean            visible;
  85.     short            initialValue;
  86.     short            min;
  87.     short            max;
  88.     short            cntlType;
  89. } CntlParam;
  90.